<template>
  <div id="app">
    <HeaderView/>
    <router-view></router-view>
    <FooterView v-show="$route.meta.show"/>
  </div>
</template>

<script>
import HeaderView from '@/views/HeaderView'
import FooterView from '@/views/FooterView'
export default {
  name: 'App',
  components:{
    HeaderView,
    FooterView
  },
  mounted() {
    //通知vuex发送请求，获取数据，存储在仓库中
    this.$store.dispatch("getCategoryList");
  },
}
</script>